﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kxx_Domain.DNS
{
    public class DomainRecordTaskModel
    {
        private string taskNumber;
        /// <summary>
        /// 任务编号
        /// </summary>
        public string TaskNumber
        {
            get { return taskNumber; }
            set { taskNumber = value; }
        }

        private string recordId;
        /// <summary>
        /// 解析记录的ID
        /// </summary>
        public string RecordId
        {
            get { return recordId; }
            set { recordId = value; }
        }

        private string rr;
        /// <summary>
        /// 主机记录
        /// </summary>
        public string RR
        {
            get { return rr; }
            set { rr = value; }
        }

        private string type;
        /// <summary>
        /// 解析记录类型
        /// </summary>
        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        private int taskWaitTime = 3;
        /// <summary>
        /// 任务等待时间（s），默认5分钟
        /// </summary>
        public int TaskWaitTime
        {
            get { return taskWaitTime; }
            set { taskWaitTime = value; }
        }

        private int notifyFrequency = 3;
        /// <summary>
        /// 状态通知频率（s），默认3秒钟
        /// </summary>
        public int NotifyFrequency
        {
            get { return notifyFrequency; }
            set { notifyFrequency = value; }
        }

        private bool isRun = true;
        /// <summary>
        /// 任务状态控制
        /// </summary>
        public bool IsRun
        {
            get { return isRun; }
            set
            {
                isRun = value;
            }
        }

        /// <summary>
        /// 是否通知QQ Email
        /// </summary>
        private bool isNoticeQQEmail;

        public bool IsNoticeQQEmail
        {
            get { return isNoticeQQEmail; }
            set { isNoticeQQEmail = value; }
        }

    }
}
